package com.ys.web.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 客户跟进管理表
 * @author xiezhengliang
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "customer_follow_up", catalog = "ysanalyze")
public class CustomerFollowUp {

	/**自增主键*/
	private Integer id;  
	/**公司id*/
	private Integer companyId;
	/**跟进人id*/
	private String userId;
	/**跟进人id*/
	private String userName;
	/**公司名称*/
	private String companyName;
	/**跟进内容*/
	private String followUpTitle;
	/**跟进内容*/
	private String followUpContent;
	/**跟进时间*/
	private Date followUpTime;
	/**是否生效*/
	private String state;
	
	
	public CustomerFollowUp() {
	}

	public CustomerFollowUp(Integer id, Integer companyId, String userId, String userName, String companyName,
			String followUpTitle,String followUpContent, Date followUpTime, String state) {
		super();
		this.id = id;
		this.companyId = companyId;
		this.userId = userId;
		this.userName = userName;
		this.companyName = companyName;
		this.followUpTitle= followUpTitle;
		this.followUpContent = followUpContent;
		this.followUpTime = followUpTime;
		this.state = state;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "company_id", unique=true, nullable = false, length = 20)
	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	@Column(name = "user_id", unique=true, nullable = false, length = 20)
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Column(name = "user_name", length = 20)
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@Column(name = "company_name", length = 200)
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	@Column(name = "follow_up_title", length = 200)
	public String getFollowUpTitle() {
		return followUpTitle;
	}
	
	public void setFollowUpTitle(String followUpTitle) {
		this.followUpTitle = followUpTitle;
	}
	@Column(name = "follow_up_content", length = 1200)
	public String getFollowUpContent() {
		return followUpContent;
	}

	public void setFollowUpContent(String followUpContent) {
		this.followUpContent = followUpContent;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "follow_up_time", nullable = false, length = 19)
	public Date getFollowUpTime() {
		return followUpTime;
	}

	public void setFollowUpTime(Date followUpTime) {
		this.followUpTime = followUpTime;
	}
	@Column(name = "state", length = 20)
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	
	
	
}
